#ifndef JIEXI_H
#define JIEXI_H
enum ml {
    ls = 1,
    quit,
    get,
    put,
    cd,
    history,
    erro,
};
typedef struct File {
    enum ml s;       //命令
    char name[128];  //参数
    char md5[128];    // md5值
    long len;        //传送文件大小
    char *sub;       //文件内容
} file;


typedef struct hist {
     enum ml hist_s;
     char hist_name[128];
     struct hist *next;
 } hist;




enum ml get_enum(char *s);
file jiexi(char *s,file ff);
int  chuli(int fd, file ff);
void fasong(int fd, file ff);
void huoqu(int fd, file ff);
char * zhuanghuan(enum ml sss);
void gethist(int fd);
#endif
